package com.example.designpattern.singleExample;

/**
 * @program: DesignPattern
 * @description: 饿汉式创建单例模式
 * @author: zhangjt
 * @create: 2024-11-14 14:44
 **/
public class HungryCreateBean {
    private static HungryCreateBean hungryCreateBean = new HungryCreateBean();

    private HungryCreateBean(){}

    public static HungryCreateBean getInstance(){
        return hungryCreateBean;
    }
}
